package cn.touna.jss.modules.third.zhima.entity;


import cn.touna.jss.modules.third.zhima.enums.ZhimaResultEnum;

/**
 * <P>对功能点的描述</P>
 *
 * @author tianhuaxing 2016年2月2日 下午2:50:58
 * @since 1.0.0.000
 */
public class AccreditCallbackResultDto extends ZhimaBaseResultDto {

    private static final long serialVersionUID = 1L;

    private AccreditCallbackData retData;

    public AccreditCallbackData getRetData() {
        return retData;
    }

    public void setRetData(AccreditCallbackData retData) {
        this.retData = retData;
    }

    public AccreditCallbackResultDto server_error(AccreditCallbackResultDto response, String sid) {
        response.setSuccess(false + "");
        response.setRetCode(ZhimaResultEnum.AUTH_ERROR.getRetCode());
        response.setRetMessage(ZhimaResultEnum.AUTH_ERROR.getRetMessage());
        AccreditCallbackData data = new AccreditCallbackData();
        data.setSid(sid);
        response.setRetData(data);
        return response;
    }

    public AccreditCallbackResultDto server_param_limit(AccreditCallbackResultDto response, String sid) {
        response.setSuccess(false + "");
        response.setRetCode(ZhimaResultEnum.AUTH_PARAM_LIMIT.getRetCode());
        response.setRetMessage(ZhimaResultEnum.AUTH_PARAM_LIMIT.getRetMessage());
        AccreditCallbackData data = new AccreditCallbackData();
        data.setSid(sid);
        response.setRetData(data);
        return response;
    }

}
